<ul class="nav">
    {% if action =='index' %}<li class="active">{% else %}<li>{% endif %}<a href="/">首页</a></li>
    {% if action =='about' %}<li class="active">{% else %}<li>{% endif %}<a href="/about">关于我们</a></li>
    {% if action =='contact' %}<li class="active">{% else %}<li>{% endif %}<a href="/contact">联系我们</a></li>
</ul>
<ul class="nav pull-right">
    <li><a href="/account/sign_in">登陆</a></li>
    <li><a href="/account/sign_up">注册</a></li>
</ul>
